﻿<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>用户协议</title>
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<link rel="stylesheet" href="/lobsteruiframe/weui/css/weui.css" />
	<link rel="stylesheet" href="/lobsteruiframe/weui/css/weuix.css" />
	<script src="/lobsteruiframe/weui/js/zepto.min.js"></script>
	<script src="/lobsteruiframe/weui/js/zepto.weui.js"></script>
	<script src="/jslib/lobster.js"></script>
</head>
	<body ontouchstart>
		<div id="agreement"></div>
	</body>
</html>

<script>
	lobsterh5.main({
		data: {
			right: null,//登录用户信息
		},
		//初始化页面
		pageload: function (_right) {
			this.data.right = _right;
			this.getAgreementInfo();
		},
		//初始化事件
		initevent: function () {

		},
		//获取协议条款信息
		getAgreementInfo: function () {
			var self = this;

			lobsterh5.GET("/admin/v1/CLogin/GetAgreement", { code: "syxy" }).then(data => {
				$("#agreement").html(data.agreement.Contents)
			}).catch(res => {
				$.toast("发生了未知错误", "forbidden");
			});

		},
	}, false);
</script>